<?php
header("content-Type: text/html; charset=utf-8");

$q = mysql_connect("127.0.0.1","root","");

if(!$q)

{

die('Could not connect: ' . mysql_error());

}

mysql_query("set names utf8");     //以utf8读取数据

mysql_select_db("t-wish",$q);   //数据库

?>

